<? if(isset($session) && !empty($session)){ ?>
<? $this->load->view("common/header");?>

		<div id="welcome-home"></div>
		<script type="text/javascript">
			Ext.onReady(function(){	
			    var p = new Ext.Panel({
					title		:'<?=$title?>',	       
			        renderTo	:'welcome-home',
			        contentEl	:'home-content'
			    });
			});
		</script>
	
	<div id="home-content">		
			
		<div class="entry">
			<a class="entry-title">Curs valutar BNR:</a>
			<div class="excerpt">
				<p>EUR: <?=$curs['values']['EUR']?></p>
				<p>USD: <?=$curs['values']['USD']?></p>
			</div>
			<h4><a class="view-post">Data de referinta: <?=$curs['data']?></a><br /></h4>
		</div>
		
		<div class="entry">
			<a class="entry-title">Situatie facturi:</a>
			<div class="excerpt">
				<p>Facturi emise: <?=$facturi?></p>
				<p>Facturi anulate: <?=$facturi_anulate?></p>
			</div>
			<h4><a class="view-post">Data de referinta: <?=date('d-m-Y')?></a><br /></h4>
		</div>	
		
		<div class="entry">
			<a class="entry-title">Situatie clienti:</a>
			<div class="excerpt">
				<p>Numar clienti: <?=$clienti?></p>
				<p>Persoane fizice: <?=$clienti_pf?></p>
				<p>Persoane juridice: <?=$clienti_pj?></p>	
			</div>
			<h4><a class="view-post">Data de referinta: <?=date('d-m-Y')?></a><br /></h4>
		</div>	
		
	</div>

	
<? $this->load->view("common/footer"); ?>	
<? } else {redirect("welcome/logout");} ?>